<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>测试页面</title>
<jsp:include page="inc.jsp"></jsp:include>
<script type="text/javascript">
	if ('null' == '${userSession.id}' || '' == $.trim('${userSession.id}')) {
		window.location.href = '${pageContext.request.contextPath}/app/user/login.jsp';
	} else {
		sysRoles = new Map();
		$.ajax({
			type : "POST",
			url : "${pageContext.request.contextPath}/sysRoleAction!getSysRoles.action",
			dataType : "json",
			error : function(info) {
				eval(info.responseText);
			},
			success : function(result) {
				if (result && result.length > 0) {
					for ( var x = 0; x < result.length; x++) {
						var sysRole = result[x];
						sysRoles.put(sysRole.roleName, sysRole);
					}
				}
			}
		});
	}
</script>
</head>

<body class="easyui-layout">

	<div data-options="region:'north',href:'${pageContext.request.contextPath}/app/layout/north.jsp'" style="height:60px; "></div>

	<div data-options="region:'south',href:'${pageContext.request.contextPath}/app/layout/south.jsp'" style="height:20px;"></div>

	<div data-options="region:'west',href:'${pageContext.request.contextPath}/app/layout/west.jsp',title:'导航'" style="width:200px;"></div>

	<div data-options="region:'center',href:'${pageContext.request.contextPath}/app/layout/center.jsp'"></div>

</body>
</html>
